/*
 * Copyright (c) 2020 hebeiyiliuba.com
 * All rights reserved.
 *
 */
package org.jeecg.modules.third.daikai.fanyun.constant;

/**
 * 在这里编写类的功能描述
 *
 * @author duanlikao
 * @created 2021/7/1
 * @update 2023-08-11 重构，文档地址：http://gogs.kuaihuoyun.com:3000/gongmingwei/celestia-api-doc
 */
public class FanyunConstant {

    /**
     * APITOKEN 缓存key
     */
    public static final String FANYUN_TOKEN_KEY = " fanyun_token" ;
    /**
     * Token失效时间 70小时
     */
    public static final Integer FANYUN_TOKEN_KEY_EXPIRE = 60 * 60 * 10;

    /**
     * API签名 缓存key
     */
    public static final String FANYUN_REFRESHTOKEN_KEY = "fanyun_refreshtoken" ;
    /**
     * Sign失效时间 90天
     */
    public static final Integer FANYUN_REFRESHTOKEN_KEY_EXPIRE = 86400 * 90;

    /**
     * 请求token
     */
    public static final String FANYUN_GENERATE_TOKEN = "/user/generate_access_token";

    /**
     * 刷新token
     */
    public static final String FANYUN_REFRESH_TOKEN = "/user/refresh_access_token";

    /**
     * 创建承运人（经纪人）接口
     */
    public static final String FANYUN_OPEN_MIDDLEMAN_CREATE = "/open_middleman/create";

    /**
     * 批量创建司机接口
     */
    public static final String FANYUN_DRIVER_CREATEBATCH = "/driver/batch_create";

    /**
     * 批量创建车辆接口
     */
    public static final String FANYUN_VEHICLE_CREATEBATCH = "/vehicle/batch_create";

    /**
     * 批量创建收款人接口
     */
    public static final String FANYUN_PAYEE_CREATEBATCH = "/payee/batch_create";

    /**
     * 创建司机费用结算单
     */
    public static final String FANYUN_FEE_SAVE_SETTLEMENT = "/finance_driver_fee/save_settlement";

    /**
     * 创建司机费用结算单(撮合)
     */
    public static final String FANYUN_FEE_SAVE_SETTLEMENT_MATCHUP = "/finance_driver_fee/save_settlement";

    /**
     * 财务类接口:全部核销,不支持多笔核销
     */
    public static final String FANYUN_WRITEOFF = "/writeoff/writeoff";

    /**
     *  分笔核销司机费用结算单
     */
    public static final String FANYUN_DRIVERFEE_WRITEOFF = "/finance_driver_fee/write_off";

    /**
     *  分笔核销司机费用结算单(撮合)
     */
    public static final String FANYUN_DRIVERFEE_WRITEOFF_MATCHUP = "/finance_driver_fee_match_up/write_off";

    /**
     * 创建承运人合同
     */
    public static final String FANYUN_CONTRACT_DRIVER_CREATE = "/contract/driver/create";

    /**
     * 创建撮合单票承运人合同
     */
    public static final String FANYUN_CONTRACT_MATCHUP_DRIVER_CREATE = "/matchup/contract/driver/create";

    /**
     * 上报运单轨迹接口
     */
    public static final String FANYUN_GPS_PUSH = "/gps/report_gps_data_for_order";

    /**
     * 撤销运单
     */
    public static final String FANYUN_ORDER_CANCEL = "/order/cancel_order";

    /**
     *  签收运单
     */
    public static final String FANYUN_ORDER_SIGNOFF = "/order/signOff_order";

    /**
     *  撮合开单
     */
    public static final String FANYUN_ORDER_CREATE_MATCHUP = "/order_match_up/create_order_match_up";

    /**
     *  更新运单
     */
    public static final String FANYUN_ORDER_UPDATE = "/order/update_order";


    /**
     * 请求地址
     */
    //梵运和快货运是一家公司，URL用https://openapi.wlhy.56fanyun.com或者https://openapi.wlhy.kuaihuoyun.com都可以
    //public static final String FANYUN_DOMAIN_URL = "https://openapi.wlhy.pre.kuaihuoyun.com";

}
